]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
calendar: Only allow closing events on the current day
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 11 Mar 2015 22:06:50 +0000 (23:06 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 12 Mar 2015 16:10:11 +0000 (17:10 +0100)
The design calls for differentiating between dismissable reminders
and permanent events, based on whether the selected date is "today"
or some other day.

https://bugzilla.gnome.org/show_bug.cgi?id=744927

js/ui/calendar.js

index 2f1fac03b3232750d709672c971977a290455772..b79045e8f7bf87a99bf5d517209b1a1fade94863 100644 (file)
@@ -1198,6 +1198,10 @@ const EventMessage = new Lang.Class({
                 title = title + ELLIPSIS_CHAR;
         }
         return title;
+    },
+
+    canClose: function() {
+        return _isToday(this._date);
     }
 });